<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

    <div id="app">
        console日志测试
        <br><br>
    </div>
    
    <script src="../dist/monitorjs.min.js"></script>
    <script src="../node_modules/vue/dist/vue.min.js"></script>

    <script>
        new MonitorJS().init({
            url:"http://baidu.com/api",    //上报错误地址
            consoleError:true,
            vueError:true,  //是否上报Vue错误
            vue:Vue,
            extendsInfo:{   //扩展信息，一般用于数据数据持久化区分
                filterTwo: "机票",
                module:"Touch站",  //错误
                getDynamic:()=>{
                    return {
                        filterOne:getDynamicParams(),
                    }
                }
            }
        });
        
        function getDynamicParams(){
            return Math.floor((Math.random()*1000)+1);
        }
        
        console.tInfo("11111111111111");  //console_error
        console.tWarn("22222222222222");  //console_error
        setTimeout(()=>{
            console.tError("333333333333333333");  //console_error
        },260);
        setTimeout(()=>{
            console.tError("444444444444444444");  //console_error
        },200);
        console.tError("5555555555555");  //console_error
        
    </script>
</body>
</html>